﻿using NodeCanvas.Framework;

namespace Yoozoo.Gameplay.Liberty.AI.Node
{
    public class ReturnCarStatusFailure : CarConditionBaseNode
    {
        public BBParameter<CarStatus> carStatus = CarStatus.PathControl;

        protected override bool OnCheck()
        {
            if (_carEntity && (_carEntity.data.carStatus & carStatus.value) == 0)
            {
                return false;
            }
            return true;
        }
    }
}